//
//  IPAblumDetailViewController.swift
//  IDPhoto
//
//  Created by njsx on 2022/5/25.
//  Copyright © 2022 Awei. All rights reserved.
//

import UIKit

class IPAblumDetailViewController: UIViewController {

    var img = UIImage()
    
    @IBOutlet weak var widthCons: NSLayoutConstraint!
    @IBOutlet weak var heightCons: NSLayoutConstraint!
    @IBOutlet weak var imgView: UIImageView!
    override func viewDidLoad() {
        super.viewDidLoad()
        print(self.img.size.width)
        print(self.img.size.height)
        widthCons.constant = self.img.size.width
        heightCons.constant = self.img.size.height
        self.imgView.image = img
        
        // Do any additional setup after loading the view.
    }
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        self.navigationController?.isNavigationBarHidden = false
    }
    @IBAction func saveXingCeAction(_ sender: Any) {
        UIImageWriteToSavedPhotosAlbum(img, nil, nil, nil)
    }
    
    
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
